package cn.sccl.dirms.dev.model;

import cn.sccl.common.exception.BusinessException;
import cn.sccl.common.model.BaseModel;

/**
* 
* 数据库表 t_dev_murri 的实体对象
* Created by liupan on 2017-06-25.
*/
public class Murri extends BaseModel{
/**
*表名
*/
public final static String TABLE_NAME ="t_dev_murri";

    private java.lang.String confNo;//配置编号
    private java.lang.String graphNo;//图形编号
    private java.lang.String graphType;//图形类型
    private java.lang.String graphTitle;//图形标题
    private java.lang.String gsql;//取数sql
    private java.lang.String valCol;//取值字段名
    private java.lang.String xcol;//x轴字段名
    private java.lang.String ycol;//y轴字段名
    private java.lang.String zcol;//z轴字段名
    private java.lang.String grCol;//分组字段名（对应图例）
    private java.lang.String wid;//图形宽度
    private java.lang.String hei;//图形高度
    private java.lang.String idx;//排序
    private java.lang.String autoRef;//是否自动刷新：y 是 n 否，默认为n
    private java.lang.Long refMs;//刷新频率，单位为毫秒

    public void setConfNo(java.lang.String confNo){
    this.confNo = confNo;
    }

        public java.lang.String getConfNo(){
    return this.confNo;
    }
    public void setGraphNo(java.lang.String graphNo){
    this.graphNo = graphNo;
    }

        public java.lang.String getGraphNo(){
    return this.graphNo;
    }
    public void setGraphType(java.lang.String graphType){
    this.graphType = graphType;
    }

        public java.lang.String getGraphType(){
    return this.graphType;
    }
    public void setGraphTitle(java.lang.String graphTitle){
    this.graphTitle = graphTitle;
    }

        public java.lang.String getGraphTitle(){
    return this.graphTitle;
    }
    public void setGsql(java.lang.String gsql){
    this.gsql = gsql;
    }

        public java.lang.String getGsql(){
    return this.gsql;
    }
    public void setValCol(java.lang.String valCol){
    this.valCol = valCol;
    }

        public java.lang.String getValCol(){
    return this.valCol;
    }
    public void setXcol(java.lang.String xcol){
    this.xcol = xcol;
    }

        public java.lang.String getXcol(){
    return this.xcol;
    }
    public void setYcol(java.lang.String ycol){
    this.ycol = ycol;
    }

        public java.lang.String getYcol(){
    return this.ycol;
    }
    public void setZcol(java.lang.String zcol){
    this.zcol = zcol;
    }

        public java.lang.String getZcol(){
    return this.zcol;
    }
    public void setGrCol(java.lang.String grCol){
    this.grCol = grCol;
    }

        public java.lang.String getGrCol(){
    return this.grCol;
    }
    public void setWid(java.lang.String wid){
    this.wid = wid;
    }

        public java.lang.String getWid(){
    return this.wid;
    }
    public void setHei(java.lang.String hei){
    this.hei = hei;
    }

        public java.lang.String getHei(){
    return this.hei;
    }
    public void setIdx(java.lang.String idx){
    this.idx = idx;
    }

        public java.lang.String getIdx(){
    return this.idx;
    }
    public void setAutoRef(java.lang.String autoRef){
    this.autoRef = autoRef;
    }

        public java.lang.String getAutoRef(){
    return this.autoRef;
    }
    public void setRefMs(java.lang.Long refMs){
    this.refMs = refMs;
    }

        public java.lang.Long getRefMs(){
    return this.refMs;
    }

/**
* clone一个对象。
* @param cls 需要克隆的对象类型，只能是当前类的子类
* @param
<T>
    * @return
    * @throws IllegalAccessException
    * @throws InstantiationException
    */
    public
    <T extends Murri> T clone(Class
        <T> cls) {
            try {
            T t = cls.newInstance();
            t.setId(this.
            getId());
            t.setConfNo(this.
            getConfNo());
            t.setGraphNo(this.
            getGraphNo());
            t.setGraphType(this.
            getGraphType());
            t.setGraphTitle(this.
            getGraphTitle());
            t.setGsql(this.
            getGsql());
            t.setValCol(this.
            getValCol());
            t.setXcol(this.
            getXcol());
            t.setYcol(this.
            getYcol());
            t.setZcol(this.
            getZcol());
            t.setGrCol(this.
            getGrCol());
            t.setWid(this.
            getWid());
            t.setHei(this.
            getHei());
            t.setIdx(this.
            getIdx());
            t.setAutoRef(this.
            getAutoRef());
            t.setRefMs(this.
            getRefMs());
            t.setCreateTime(this.
            getCreateTime());
            t.setUpdateTime(this.
            getUpdateTime());
            t.setDeleteFlag(this.
            isDeleteFlag());
            return t;
            } catch (Exception e) {
            e.printStackTrace();
            throw new BusinessException("对象克隆失败，请克隆的目标对象是否具有无参的构造函数。", e.getCause());
            }
            }
            }